package com.xuan.contest.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xuan.contest.entry.ContestEntity;
import com.xuan.contest.entry.ProblemEntity;
import org.springframework.stereotype.Repository;

/**
 * @author XinZhaoXuan
 * @date 2018/9/7
 */
@Repository
public interface ProblemMapper extends BaseMapper<ProblemEntity> {
    /**
     * 根据问题查找正确答案
     * @param questionId
     * @return
     */
    int selectAnswerByQuestion(int questionId);
}
